﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LdCms.Plugins.Map.Tencent.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class PlaceSearchResult
    {
        public int status { get; set; }
        public string message { get; set; }
        public int count { get; set; }
        public string request_id { get; set; }
        public List<PlaceSearchResultData> data { get; set; }
        public PlaceSearchResultGeocoder geocoder { get; set; }
        public List<PlaceSearchResultCluster> cluster { get; set; }
        public PlaceSearchResultRegion region { get; set; }
    }
    public class PlaceSearchResultRegion
    {
        public string title { get; set; }
    }
    public class PlaceSearchResultData
    {
        public string id { get; set; }
        public string title { get; set; }
        public string address { get; set; }
        public string tel { get; set; }
        public string category { get; set; }
        public int type { get; set; }
        public PlaceSearchResultDataLocation location { get; set; }
        public PlaceSearchResultDataAdInfo ad_info { get; set; }
        public PlaceSearchResultDataPano pano { get; set; }
    }
    public class PlaceSearchResultDataLocation
    {
        public decimal lat { get; set; }
        public decimal lng { get; set; }
    }
    public class PlaceSearchResultDataAdInfo
    {
        public int adcode { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string district { get; set; }
    }
    public class PlaceSearchResultDataPano
    {
        public string id { get; set; }
        public int heading { get; set; }
        public int pitch { get; set; }
        public int zoom { get; set; }

    }

    public class PlaceSearchResultGeocoder
    {
        public PlaceSearchResultGeocoderResult result { get; set; }
    }
    public class PlaceSearchResultGeocoderResult
    {
        public PlaceSearchResultGeocoderResultLocation location { get; set; }
        public PlaceSearchResultGeocoderResultAddressComponents address_components { get; set; }
        public string type { get; set; }
        public string similarity { get; set; }
    }
    public class PlaceSearchResultGeocoderResultLocation
    {
        public decimal lat { get; set; }
        public decimal lng { get; set; }
    }
    public class PlaceSearchResultGeocoderResultAddressComponents
    {
        public string province { get; set; }
        public string city { get; set; }
        public string district { get; set; }
        public string street { get; set; }
        public string street_number { get; set; }
    }

    public class PlaceSearchResultCluster
    {
        public string title { get; set; }
        public int count { get; set; }
    }


}
